package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类管理对象 sys_sort
 *
 * @author ruoyi
 * @date 2022-02-15
 */
public class SysSort extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String recNo;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String sortName;

    /** 父级分类编号 */
    private String sortPrantNo;

    /** 父级分类名称 */
    private String sortPrantName;

    /** 主表编号 */
    private String sortMainTableNo;

    /** 主表名称 */
    private String sortMainTableName;

    /** 展示表编号 */
    private String sortViewTableNo;

    /** 展示表名称 */
    private String sortViewTableName;

    /** 档号组成规则 */
    @Excel(name = "档号组成规则")
    private String sortArcNoCnt;

    /** 子表名称 */
    @Excel(name = "子表编号")
    private String sortSublist;

    @Excel(name = "子表名称")
    private String sortSublistName;

    /** 是否底层分类（0：是1：否） */
    private String isLast;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    /** 顺序号 */
    private Long orderNo;
    private String label;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    private List<SysSort> children = new ArrayList<SysSort>();

    public List<SysSort> getChildren() {
        return children;
    }

    public void setChildren(List<SysSort> children) {
        this.children = children;
    }

    public String getSortSublistName() {
        return sortSublistName;
    }

    public void setSortSublistName(String sortSublistName) {
        this.sortSublistName = sortSublistName;
    }

    public String getSortPrantName() {
        return sortPrantName;
    }

    public void setSortPrantName(String sortPrantName) {
        this.sortPrantName = sortPrantName;
    }

    public String getSortMainTableName() {
        return sortMainTableName;
    }

    public void setSortMainTableName(String sortMainTableName) {
        this.sortMainTableName = sortMainTableName;
    }

    public String getSortViewTableName() {
        return sortViewTableName;
    }

    public void setSortViewTableName(String sortViewTableName) {
        this.sortViewTableName = sortViewTableName;
    }


    public String getSortSublist() {
        return sortSublist;
    }

    public void setSortSublist(String sortSublist) {
        this.sortSublist = sortSublist;
    }

    public void setRecNo(String recNo)
    {
        this.recNo = recNo;
    }

    public String getRecNo()
    {
        return recNo;
    }
    public void setSortName(String sortName)
    {
        this.sortName = sortName;
    }

    public String getSortName()
    {
        return sortName;
    }
    public void setSortPrantNo(String sortPrantNo)
    {
        this.sortPrantNo = sortPrantNo;
    }

    public String getSortPrantNo()
    {
        return sortPrantNo;
    }
    public void setSortMainTableNo(String sortMainTableNo)
    {
        this.sortMainTableNo = sortMainTableNo;
    }

    public String getSortMainTableNo()
    {
        return sortMainTableNo;
    }
    public void setSortViewTableNo(String sortViewTableNo)
    {
        this.sortViewTableNo = sortViewTableNo;
    }

    public String getSortViewTableNo()
    {
        return sortViewTableNo;
    }
    public void setSortArcNoCnt(String sortArcNoCnt)
    {
        this.sortArcNoCnt = sortArcNoCnt;
    }

    public String getSortArcNoCnt()
    {
        return sortArcNoCnt;
    }
    public void setIsLast(String isLast)
    {
        this.isLast = isLast;
    }

    public String getIsLast()
    {
        return isLast;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setOrderNo(Long orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recNo", getRecNo())
            .append("sortName", getSortName())
            .append("sortPrantNo", getSortPrantNo())
            .append("sortMainTableNo", getSortMainTableNo())
            .append("sortViewTableNo", getSortViewTableNo())
            .append("sortArcNoCnt", getSortArcNoCnt())
            .append("isLast", getIsLast())
            .append("delFlag", getDelFlag())
            .append("orderNo", getOrderNo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("sortSublist", getSortSublist())
            .toString();
    }
}
